#include <54func.h>
int main(int argc,char *argv[])
{
    // ./4_homework_B 1.pipe
    ARGS_CHECK(argc,2);
    int fdr = open(argv[1],O_RDONLY);
    ERROR_CHECK(fdr,-1,"open");

    char buf[1024]={0};//从管道中去读取数据
    read(fdr,buf,1024);
    printf("%s\n",buf);
    return 0;
}
